package com.ehome.poct.base.api.dto.device.bootModule;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel("电机模块")
public class MotionModuleDTO {
    @ApiModelProperty(value = "模块是否通过 true通过false不通过")
    private Boolean pass;
    @ApiModelProperty(value = "x轴电机信息")
    private Motor xMotor;
    @ApiModelProperty(value = "y轴电机信息")
    private Motor yMotor;
    @ApiModelProperty(value = "z轴电机信息")
    private Motor zMotor;

    /**
     * 电机信息
     */
    @Data
    @ApiModel("电机信息")
    public class Motor {
        @ApiModelProperty("运动测试精度")
        private BigDecimal accuracy;
        @ApiModelProperty("复位偏差")
        private BigDecimal deviation;
        @ApiModelProperty("运动测试状态")
        private String code;
    }
}
